import request from "../utils/request";
// 接口返回的数据类型
export interface IBannerParams {
      img: string
      alt: string
      link: string
}
// 获取接口列表
export function getBannerList() {
    return request({
         url: '/banner/list'
    })
}
// 添加 banner
export function addBanner(params: IBannerParams) {
    return request({
          url: '/banner/add',
           method: 'POST',
           data: params
    })
}
// 删除 banner
export function deleteBanner(params: { bannerid: string }) {
    return request({
          url: '/banner/delete',
           data: params
       })
  }